package cn.hebutlf.userService.service.impl;

import cn.hebutlf.commonUtils.Result;
import cn.hebutlf.userService.entity.Users;
import cn.hebutlf.userService.mapper.UsersMapper;
import cn.hebutlf.userService.service.UsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xbfinal
 * @since 2023-08-05
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {
    @Override
    public Result findAllUser() {
        List<Users> users = baseMapper.selectByMap(null);
      return Result.ok().addData(users);

    }


}
